home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / programr / atre27.exe / ATREE_27 / LFWIN / LF.H < prev    next >
C/C++ Source or Header  |  1992-08-01  |  5KB  |  103 lines

  1.  
  2. /*****************************************************************************
  3.  ****                                                                     ****
  4.  **** lf.h                                                                ****
  5.  ****                                                                     ****
  6.  **** atree release 2.7 for Windows                                       ****
  7.  **** Adaptive Logic Network (ALN) simulation program.                    ****
  8.  **** Copyright (C) A. Dwelly, R. Manderscheid, M. Thomas, W.W. Armstrong ****
  9.  ****               1991, 1992                                            ****
  10.  ****                                                                     ****
  11.  **** License:                                                            ****
  12.  **** A royalty-free license is granted for the use of this software for  ****
  13.  **** NON_COMMERCIAL PURPOSES ONLY. The software may be copied and/or     ****
  14.  **** modified provided this notice appears in its entirety and unchanged ****
  15.  **** in all derived source programs.  Persons modifying the code are     ****
  16.  **** requested to state the date, the changes made and who made them     ****
  17.  **** in the modification history.                                        ****
  18.  ****                                                                     ****
  19.  **** Patent License:                                                     ****
  20.  **** The use of a digital circuit which transmits a signal indicating    ****
  21.  **** heuristic responsibility is protected by U. S. Patent 3,934,231     ****
  22.  **** and others assigned to Dendronic Decisions Limited of Edmonton,     ****
  23.  **** W. W. Armstrong, President.  A royalty-free license is granted      ****
  24.  **** by the company to use this patent for NON_COMMERCIAL PURPOSES to    ****
  25.  **** adapt logic trees using this program and its modifications.         ****
  26.  ****                                                                     ****
  27.  **** Limited Warranty:                                                   ****
  28.  **** This software is provided "as is" without warranty of any kind,     ****
  29.  **** either expressed or implied, including, but not limited to, the     ****
  30.  **** implied warrantees of merchantability and fitness for a particular  ****
  31.  **** purpose.  The entire risk as to the quality and performance of the  ****
  32.  **** program is with the user.  Neither the authors, nor the             ****
  33.  **** University of Alberta, its officers, agents, servants or employees  ****
  34.  **** shall be liable or responsible in any way for any damage to         ****
  35.  **** property or direct personal or consequential injury of any nature   ****
  36.  **** whatsoever that may be suffered or sustained by any licensee, user  ****
  37.  **** or any other party as a consequence of the use or disposition of    ****
  38.  **** this software.                                                      ****
  39.  **** Modification history:                                               ****
  40.  ****                                                                     ****
  41.  **** 90.09.05 Initial implementation, A.Dwelly                           ****
  42.  **** 91.04.15 Port to PC and minor bug fixes, R. Manderscheid            ****
  43.  **** 91.05.20 Windows Port & Windows Extensions, M. Thomas               ****
  44.  **** 91.07.17 atree v2.0 for Windows, M. Thomas                          ****
  45.  **** 92.04.27 atree v2.5 for Windows, M. Thomas                          ****
  46.  **** 92.03.07 Release 2.6, Monroe Thomas                                 ****
  47.  **** 92.01.08 Release 2.7, Monroe Thomas                                 ****
  48.  ****                                                                     ****
  49.  *****************************************************************************/
  50.  
  51. #define TRUE 1
  52. #define FALSE 0
  53.  
  54. typedef struct prog_struct
  55. {
  56.         BOOL error;
  57.         BOOL warning;
  58.         BOOL forest_folded;
  59.  
  60.     /*
  61.      * total_dimensions = dimensions + codimensions
  62.      * domain: 0 .. dimensions - 1
  63.      * codomain: dimensions .. total_dimensions - 1
  64.      */
  65.  
  66.     int dimensions;
  67.     int codimensions;
  68.     int total_dimensions;
  69.  
  70.     int domain_width;
  71.     int codomain_width;
  72.     int trainset_sz;
  73.     int testset_sz;
  74.     float far * far *train_table;
  75.     float far * far *test_table;
  76.  
  77.     LPCODE_T code;
  78.     int far *walk_step;
  79.  
  80.     int tree_sz;
  81.     int min_correct;
  82.     int max_epochs;
  83.     int vote;
  84.  
  85.     char *save_tree;
  86.     char *load_tree;
  87.     char *save_code;
  88.     char *load_code;
  89. }
  90. prog_t;
  91.  
  92. union stack_type {
  93.   int   i;
  94.   float f;
  95.   char  *s;
  96. };
  97.  
  98. #define YYSTYPE union stack_type
  99.  
  100. /* status dlg constants */
  101.  
  102. #define IDD_TEXT    100
  103. #define    IDD_PERCENT    101